﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;

namespace WpfApp.Models
{
    public class Anchor : BindableBase
    {
        public byte[] ID { get; set; }
        private string _AnchorId;
        public string AnchorId
        {
            get => _AnchorId;
            set => SetProperty(ref _AnchorId, value);
        }
        private string _Ip;
        public string Ip
        {
            get => _Ip;
            set => SetProperty(ref _Ip, value);
        }

        public string Bootloader { get; set; }
        private string _FwVersion;
        public string FwVersion
        {
            get => _FwVersion;
            set => SetProperty(ref _FwVersion, value);
        }
        public string BulidPc { get; set; }
        public string BulidDate { get; set; }
        public string BulidTime { get; set; }

        private int _Channel;
        public int Channel
        {
            get => _Channel;
            set => SetProperty(ref _Channel, value);
        }
        private int _Mode;
        public int Mode
        {
            get => _Mode;
            set => SetProperty(ref _Mode, value);
        }
        private string _ServerIp;
        public string ServerIp
        {
            get => _ServerIp;
            set => SetProperty(ref _ServerIp, value);
        }

        private UInt16 _WarningDistance;
        public UInt16 WarningDistance
        {
            get => _WarningDistance;
            set => SetProperty(ref _WarningDistance, value);
        }

        private UInt16 _AlarmDistance;
        public UInt16 AlarmDistance
        {
            get => _AlarmDistance;
            set => SetProperty(ref _AlarmDistance, value);
        }
        private UInt16 _UnAlarmDistance;
        public UInt16 UnAlarmDistance
        {
            get => _UnAlarmDistance;
            set => SetProperty(ref _UnAlarmDistance, value);
        }

        private string _FwType;
        public string FwType
        {
            get => _FwType;
            set => SetProperty(ref _FwType, value);
        }
        private string _SN;
        public string SN
        {
            get => _SN;
            set => SetProperty(ref _SN, value);
        }
        private string _MAC;
        public string MAC
        {
            get => _MAC;
            set => SetProperty(ref _MAC, value);
        }

        private List<string>_TagIds;
        public List<string> TagIds
        {
            get => _TagIds;
            set => SetProperty(ref _TagIds, value);
        }
    }
}
